<?php include $this->getViewFile('/common/Head'); ?>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
   <?php include $this->getViewFile('/common/Nav') ?>
   <form class="J_ajaxForm" action="<?php echo AdminBase::U("edit") ?>" method="post" id="myform">
   <input type="hidden" name="uid" value="<?php echo $data->uid ?>"/>
   <div class="h_a">基本属性</div>
   <div class="table_full">
   <table width="100%" class="table_form contentWrap">
        <tbody>
          <tr>
            <th width="80">用户名</th>
            <td><input type="test" name="username" class="input" id="username" value="<?php echo $data->username ?>"></td>
          </tr>
          <tr>
            <th>E-mail</th>
            <td><input type="text" name="email" value="<?php echo $data->email ?>" class="input" id="email" size="30"></td>
          </tr>
          <tr>
            <th>密码</th>
            <td><input type="text" name="new_password" value="" class="input" id="new_password" placeholder="不修改，请留空"></td>
          </tr>
          <tr>
            <th>手机号</th>
            <td><input type="text" name="phone" value="<?php echo $data->phone?>" class="input" id="score" maxlength="11"></td>
          </tr>
          <tr>
            <th>积分</th>
            <td><input type="text" name="score" value="<?php echo $data->score?>" class="input" id="score"></td>
          </tr>
          <tr>
            <th>成长值</th>
            <td><input type="text" name="experience" value="<?php echo $data->experience?>" class="input" id="score"><em>成长值会影响到用户组级别</em></td>
          </tr>
          <tr>
            <th>性别</th>
            <td><?php echo Form::select(array(''=>'请选择性别',1=>'男',2=>'女'),$data->sex,'name="sex"') ?></td>
          </tr>
          <tr>
            <th>会员类型</th>
            <td><?php echo Form::select(array(''=>'会员类型选择',0=>'商家会员',1=>'买家会员'),$data->kind,'name="kind"') ?></td>
          </tr>
          <tr>
            <th>会员用户组</th>
            <td><?php echo Form::select(MembersGroupModel::model()->getGroupArr(),$data->group_id,'name="group_id"') ?> <em>除了不可以自助升级的用户组外，其他用户组系统会根据成长值进行计算分组。</em></td>
          </tr>
          <tr>
            <th>生日</th>
            <td><input type="text" name="birthday" class="input length_2 J_date" value="<?php echo $data->year?>-<?php echo $data->month?>-<?php echo $data->day?>" placeholder="选择起始时间"></td>
          </tr>
          <tr>
            <th>邮箱激活状态</th>
            <td><?php echo Form::select(array(0=>'未激活',1=>'已激活'),$data->status,'name="status"') ?></td>
          </tr>
          <tr>
            <th>是否锁定</th>
            <td><?php echo Form::select(array(0=>'未锁定',1=>'已锁定'),(int)$data->is_lock,'name="is_lock"') ?></td>
          </tr>
          <tr>
            <th>锁定原因</th>
            <td><input type="text" name="is_locklog" value="<?php echo $data->is_locklog?>" class="input length_5"  placeholder="锁定原因"></td>
          </tr>
        </tbody>
      </table>
   </div>
   <div class="btn_wrap">
      <div class="btn_wrap_pd">             
        <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">修改</button>
      </div>
    </div>
    </form>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
</body>
</html>